cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 17)
project(GamesHomework)
set(VENDOR vendor)
set(UTILS utils)
set(UTILS_SRC utils/Eigen3DUtil.cpp)

include_directories(/usr/local/include)
include_directories(${UTILS})
include_directories(${VENDOR}/opencv/include)
include_directories(${VENDOR}/eigen-3.3.9/include)
LINK_DIRECTORIES(${VENDOR}/opencv/lib)

find_library(COCOA_LIBRARY Cocoa)
list(APPEND LIBS ${COCOA_LIBRARY})
list(APPEND LIBS libopencv_core.a)
list(APPEND LIBS libopencv_core.a)
list(APPEND LIBS libopencv_imgproc.a)
list(APPEND LIBS libopencv_highgui.a)
list(APPEND LIBS libIlmImf.a)
list(APPEND LIBS liblibjpeg.a)
list(APPEND LIBS liblibpng.a)
list(APPEND LIBS liblibtiff.a)
list(APPEND LIBS libzlib.a)
list(APPEND LIBS libopencv_video.a)
list(APPEND LIBS libopencv_contrib.a)
list(APPEND LIBS libopencv_calib3d.a)
list(APPEND LIBS libopencv_features2d.a)
list(APPEND LIBS libopencv_flann.a)
list(APPEND LIBS utils)
add_subdirectory(utils)
add_subdirectory(Assignment0)
add_subdirectory(Assignment1)
add_subdirectory(Assignment2)
add_subdirectory(Assignment3)